<template>
	<div class="mine">
		<div class="member-center-main">
			<div class="member-center-menu">
				<div class="info-block">
					<div class="playerid">{{info.name}}</div>
				</div>
				<div class="balance-info">
					<div class="currency">{{$t('indexTitle.title23')}}</div>
					<div class="balance">{{info.money||0}}</div>
				</div>
				<div class="nav-block">
					<div class="item" :class="tab == 0 ? 'active':''" @click="goNextPage('/mine')">
						<img src="../../assets/icons/gerenziliao.png" alt="" />
						<div class="label">{{$t('indexTitle.title24')}}</div>
					</div>
					<div class="item" :class="tab == 1 ? 'active':''" @click="goNextPage('/vipRebates')">
						<img src="../../assets/icons/vip.png" alt="" />
						<div class="label">{{$t('indexTitle.title321')}}</div>
					</div>
					<div class="item" :class="tab == 2 ? 'active':''" @click="goNextPage('/deposit')">
						<img src="../../assets/icons/chongzhi.png" alt="" />
						<div class="label">{{$t('indexTitle.title26')}}</div>
					</div>
					<div class="item" :class="tab == 3 ? 'active':''" @click="goNextPage('/withdraw')">
						<img src="../../assets/icons/tixian.png" alt="" />
						<div class="label">{{$t('indexTitle.title27')}}</div>
					</div>
					<!-- <div class="item" :class="tab == 4 ? 'active':''" @click="goNextPage('/affiliate')">
						<img src="../../assets/icons/tuiguangfenxiao.png" alt="" />
						<div class="label">{{$t('indexTitle.title28')}}</div>
					</div> -->
					<div class="item" :class="tab == 5 ? 'active':''" @click="goNextPage('/mission')">
						<img src="../../assets/icons/renwurizhi.png" alt="" />
						<div class="label">{{$t('indexTitle.title29')}}</div>
					</div>
					<div class="item" :class="tab == 6 ? 'active':''" @click="goNextPage('/promotions')">
						<img src="../../assets/icons/youhuizhongxin.png" alt="" />
						<div class="label">{{$t('indexTitle.title30')}}</div>
					</div>
					<div class="item" :class="tab == 7 ? 'active':''" @click="goNextPage('/game-history')">
						<img src="../../assets/icons/youxijilu.png" alt="" />
						<div class="label">{{$t('indexTitle.title31')}}</div>
					</div>
					<div class="item" :class="tab == 8 ? 'active':''" @click="goNextPage('/finan-history')">
						<img src="../../assets/icons/caiwujilu.png" alt="" />
						<div class="label">{{$t('indexTitle.title32')}}</div>
					</div>
					<div class="item" :class="tab == 9 ? 'active':''" @click="goNextPage('/personalMsg')">
						<img src="../../assets/icons/gonggaozhongxin.png" alt="" />
						<div class="label">{{$t('indexTitle.title33')}}</div>
					</div>
				</div>
			</div>
			<div class="member-center-content">
				<div class="member-center-profile">
					<div class="title">{{$t('indexTitle.title34')}}</div>
					<div class="navsBox">
						<div class="navsBoxIt">
							<img src="../../assets/images/zhishuchengyuan.svg" alt="">
							{{$t('indexTitle.title35')}}
						</div>
						<div class="navsBoxIt">
							<img src="../../assets/images/wodeyongjin.svg" alt="">
							{{$t('indexTitle.title36')}}
						</div>
						<div class="navsBoxIt">
							<img src="../../assets/images/guizeshuoming.svg" alt="">
							{{$t('indexTitle.title37')}}
						</div>
					</div>
					<div class="tuanduoBXO">
						<div class="tuanduoBXOwsd">
							<div class="tuanduiListIt">
								<div class="tuanduiListItL">
									{{$t('indexTitle.title38')}}
								</div>
								<div class="tuanduiListItR">
									0
								</div>
							</div>
							<div class="tuanduiListIt">
								<div class="tuanduiListItL">
									{{$t('indexTitle.title39')}}
								</div>
								<div class="tuanduiListItR">
									0
								</div>
							</div>
							<div class="tuanduiListIt">
								<div class="tuanduiListItL">
									{{$t('indexTitle.title40')}}
								</div>
								<div class="tuanduiListItR">
									0
								</div>
							</div>
							<div class="tuanduiListIt">
								<div class="tuanduiListItL">
									{{$t('indexTitle.title41')}}
								</div>
								<div class="tuanduiListItR">
									0
								</div>
							</div>
							<div class="tuanduiListIt">
								<div class="tuanduiListItL">
									{{$t('indexTitle.title42')}}
								</div>
								<div class="tuanduiListItR">
									0.00
								</div>
							</div>
							<div class="tuanduiListIt tuanduiListItTow">
								<div class="tuanduiListItL">
									{{$t('indexTitle.title43')}}
								</div>
								<div class="tuanduiListItR">
									0.00
								</div>
							</div>
							<div class="tuiguangBox">
								{{$t('indexTitle.title44')}}
							</div>
							<div class="jiangjinBox">
								{{$t('indexTitle.title45')}}500.00
							</div>
							<div class="xiaxianBox">
								{{$t('indexTitle.title46')}}<span>5</span>,{{$t('indexTitle.title47')}}
							</div>
							<div class="edafae">
								<input type="range" min="0" max="6" value="0" class="lineInputBox">
							</div>
						</div>
					</div>
				</div>
				<div class="member-center-profile">
					<div class="title">{{$t('indexTitle.title48')}}</div>
					<div class="proListIt">
						<div class="proListItTop">
							{{$t('indexTitle.title49')}}
						</div>
						<div class="BriBox">
							<div class="proListItBot proListItBottext">
								12342314
							</div>
							<div class="BriBoxright">
								<img src="../../assets/images/copy.png" alt="">
							</div>
						</div>
					</div>
					<div class="proListIt">
						<div class="proListItTop">
							{{$t('indexTitle.title50')}}
						</div>
						<div class="BriBox">
							<div class="proListItBot ">
								12342314
							</div>
							<div class="BriBoxright">
								<img src="../../assets/images/copy.png" alt="">
							</div>
						</div>
						<div class="BriBox">
							<div class="proListItBot ">
								12342314
							</div>
							<div class="BriBoxright">
								<img src="../../assets/images/copy.png" alt="">
							</div>
						</div>
					</div>
					<div class="erweimaBox">
						<div class="erweimaBoxLeft">
							<div class="proListItTop">
								{{$t('indexTitle.title51')}}
							</div>
							<img src="../../assets/images/bg-home-sports.jpg" alt="">
						</div>
						<div class="erweimaBoxright">
							<div class="erweimaBoxrightd">
								{{$t('indexTitle.title52')}}
							</div>
							<div class="erweimaBoxrightd">
								<img src="../../assets/images/xiazai.png" alt="">
								{{$t('indexTitle.title53')}}
							</div>
						</div>
					</div>
				</div>

			</div>
		</div>
		<loadingFour :msgText="msgTextTow" v-if="isShowLoadingTeow" @closeGuanbiTow="closeGuanbi"></loadingFour>
	</div>

</template>

<script>
	import {
		userinfo
	} from "../../utils/api.js"
	import loadingFour from '../../components/loadingFour.vue';
	export default {
		data() {
			return {
				close: true,
				info: [],
				tab: 4,
				msgTextTow: "",
				isShowLoadingTeow: false
			}
		},
		components: {
			loadingFour
		},
		created() {},
		mounted() {
			this.info = JSON.parse(localStorage.getItem('userInfo'))
			// this.getuserinfo()
		},
		methods: {
			closeGuanbi(e) {
				this.isShowLoadingTeow = false;
			},
			getuserinfo() {
				this.info = [];
				userinfo().then((res) => {
					if (res.status.errorCode == 0) {
						this.info = res.data
					} else if (res.status.errorCode == 401) {
						this.$emit('getTokenNum', false)
						console.log('401')
					} else {
						// this.$message.error(res.status.msg);
						this.msgTextTow = res.status.msg;
						this.isShowLoadingTeow = true;
							setTimeout(()=>{
								this.isShowLoadingTeow = false;
							},2000)
							setTimeout(()=>{
								this.isShowLoadingTeow = false;
							},2000)
						// this.$message({
						// 	showClose: true,
						// 	message: res.status.msg,
						// 	type: 'error'
						// });
					}
				}).catch((err) => {
					console.log(err, 'err')
				});
			},
			goNextPage(page) {
				this.$router.push(page)
			},
			goBack() {
				this.$router.push('/mine')
			}
		}
	}
</script>

<style scoped>
	* {
		box-sizing: border-box;
	}

	.mine {
		position: relative;
		overflow: hidden;
		/* padding-bottom: calc(50px + env(safe-area-inset-bottom)); */
	}

	.proList {
		width: 100%;
		padding: 0px 20px 0;
		box-sizing: border-box;
		margin-top: 50px;
	}

	.proListIt {
		width: 100%;
		padding: 15px 0 0px;
		box-sizing: border-box;
		border-bottom: 1px solid #e9e9e9;
	}

	.proListItTop {
		color: #545658;
		font-size: 12px;
		margin-bottom: 5px;
		opacity: .6;
	}

	.BriBox {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.proListItBot {
		font-size: 14px;
		line-height: 1.29;
		min-height: 18px;
		color: #545658;
		font-weight: 300;
	}

	.proListItBottext {
		color: #5235ff;
	}

	.BriBoxright img {
		width: 20px;
		cursor: pointer;
		height: 23px;
		transform: rotate(180deg);
	}

	.erweimaBox {
		width: 100%;
		padding: 20px 0px 15px;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.erweimaBoxLeft img {
		width: 90px;
		height: 90px;
		margin-top: 4px;
	}

	.erweimaBoxrightd {
		align-items: center;
		background-color: #fbfbfb;
		border: 1px solid #5235ff;
		border-radius: 5px;
		color: #5235ff;
		cursor: pointer;
		display: flex;
		font-size: 14px;
		justify-content: center;
		margin: 10px 0;
		min-height: 30px;
		padding: 2px 30px;
		box-sizing: border-box;
	}

	.erweimaBoxrightd img {
		width: 20px;
		height: 20px;
	}

	.navsBox {
		width: 100%;
		padding: 20px 0;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.navsBoxIt {
		width: 30%;
		height: 110px;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		background-color: #fbfbfb;
		font-size: 14px;
		line-height: 1.2;
		color: #545658;
	}

	.navsBoxIt img {
		width: 62px;
		height: 62px;
	}

	.tuanduoBXO {
		box-sizing: border-box;
	}

	.tuanduoBXOwsd {
		width: 100%;
		border-radius: 5px;
		padding: 10px 15px;
	}

	.tuanduiListIt {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 6px 0;
		border-bottom: 1px solid #e9e9e9;
	}

	.tuanduiListItTow {
		border-bottom: none;
	}

	.tuanduiListItL {
		color: #545658;
		font-size: 14px;
		font-weight: 300;
		opacity: .7;
	}

	.tuanduiListItR {
		color: #545658;
		font-size: 16px;
		font-weight: 500;
	}

	.tuiguangBox {
		width: 100%;
		text-align: center;
		margin: 30px 0;
		font-size: 18px;
		color: #777;
		font-weight: 300;
		margin-bottom: 15px;
	}

	.jiangjinBox {
		width: 100%;
		text-align: center;
		margin: 5px 0;
		color: #5235ff;
		font-size: 28px;
		font-weight: 300;
		margin-bottom: 15px;
	}

	.xiaxianBox {
		width: 100%;
		text-align: center;
		font-size: 14px;
		margin-bottom: 10px;
		margin: 5px 0;
		color: #777;
		font-weight: 300;
	}

	.xiaxianBox span {
		color: #5235ff;
	}

	.edafae {
		display: flex;
		justify-content: center;
	}

	.lineInputBox {
		-webkit-appearance: none;
		background-color: #fbfbfb;
		height: 25px;
		width: 75%;
	}

	/*横条样式*/
	.lineInputBox {
		-webkit-appearance: none;
		/*清除系统默认样式*/
		width: 85%;
		background: -webkit-linear-gradient(#c8bffc, #c8bffc) no-repeat, #c8bffc;
		/*设置左边颜色为#61bd12，右边颜色为#ddd*/
		background-size: 75% 100%;
		/*设置左右宽度比例*/
		height: 3px;
		/*横条的高度*/
	}

	/*拖动块的样式*/
	.lineInputBox::-webkit-slider-thumb {
		-webkit-appearance: none;
		/*清除系统默认样式*/
		height: 15px;
		/*拖动块高度*/
		width: 15px;
		/*拖动块宽度*/
		background: #5235ff;
		/*拖动块背景*/
		border-radius: 50%;
		/*外观设置为圆形*/
	}

	.member-center-main {
		color: #545658;
		display: flex;
		justify-content: center;
		margin: 0 auto;
		max-width: 1280px;
		padding: 20px 0;
		width: 100%;
	}

	.member-center-menu {
		overflow: hidden;
		width: 220px;
		margin-top: 10px;
	}

	.info-block {
		align-items: center;
		border-bottom: 1px solid #e9e9e9;
		display: flex;
		padding: 30px 15px 15px;
	}

	.playerid {
		font-size: 22px;
		font-weight: 600;
		word-break: break-all;
	}

	.balance-info {
		align-items: flex-end;
		border-bottom: 1px solid #e9e9e9;
		display: flex;
		justify-content: space-between;
		padding: 15px;
	}

	.currency {
		padding-right: 8px;
	}

	.balance {
		font-size: 18px;
		font-weight: 500;
	}

	.nav-block {
		align-items: center;
		display: flex;
		flex-direction: column;
	}

	.item {
		align-items: center;
		box-sizing: border-box;
		color: #939698;
		cursor: pointer;
		display: flex;
		height: 60px;
		line-height: 1.4;
		padding: 0 15px;
		position: relative;
		transition: .3s ease;
		width: 100%;
	}

	.item.active {
		color: #5235ff;
	}

	.item:hover {
		color: #5235ff;
	}

	.item img {
		width: 35px;
		height: 35px;
		margin-right: 12px;
	}

	.item .label {
		font-size: 16px;
		font-weight: 500;
		line-height: 1.2;
	}

	.member-center-content {
		background: #f9f9f9;
		margin-top: 10px;
		border-radius: 10px;
		box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .15);
		display: flex;
		justify-content: space-between;
		min-height: 700px;
		overflow: hidden;
		position: relative;
		width: calc(100% - 220px);
	}

	.member-center-profile {
		padding: 24px;
		width: 50%;
		position: relative;
	}

	.title {
		color: #545658;
		margin-bottom: 25px;
		font-size: 19px;
		font-weight: 600;
		line-height: 24px;
	}

	.nrc-tabs-nav {
		border: 0;
		align-items: center;
		display: flex;
		justify-content: flex-start;
	}

	.nrc-tabs-tab {
		flex: 1;
		font-weight: 500;
		height: 40px;
		padding: 0 !important;
		margin-right: 8px;
		align-items: center;
		border: 1px solid #e9e9e9;
		border-radius: 50px;
		display: flex;
		font-size: 14px;
		justify-content: center;
		line-height: 20px;
		color: #666;
		cursor: pointer;
		position: relative;
	}

	.nrc-tabs-tab:last-child {
		margin-right: 0;
	}

	.nrc-tabs-tab.active {
		color: #5235ff;
	}

	.setting-btn {
		align-items: center;
		background: #5235ff;
		border-radius: 5px;
		color: #fff;
		cursor: pointer;
		display: flex;
		font-size: 16px;
		font-weight: 500;
		justify-content: center;
		margin: 24px 0;
		padding: 12px 0;
		width: 100%;
	}

	table {
		color: #545658;
		font-size: 15px;
		width: 100%;
	}

	td {
		border-bottom: 1px solid #ececec;
		padding: 15px;
	}

	table .label {
		color: #939698;
	}

	.value-wrap {
		align-items: center;
		display: flex;
	}

	.promo-ads-title {
		display: flex;
		justify-content: space-between;
		margin-bottom: 10px;
	}

	.el-button {
		border-radius: 5px;
		height: 29px;
		padding: 5px 20px;
		background-color: #5235ff;
		border: 0;
		color: #fff;
		cursor: pointer;
		font-size: 16px;
	}

	.nodata {
		height: 700px;
		overflow: auto;
	}

	.no-data {
		align-items: center;
		color: #545658;
		display: flex;
		flex-direction: column;
		margin-top: 150px;
	}

	.no-data img {
		width: 50%;
	}
</style>